#pragma once
#include "afxcmn.h"


// CDlgEditStatus dialog

class CDlgEditStatus : public CDialog
{
	DECLARE_DYNAMIC(CDlgEditStatus)

public:
	CDlgEditStatus(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDlgEditStatus();

	virtual BOOL OnInitDialog();
	virtual void OnOK();

	afx_msg void OnBnClickedButtonBrowse();
	afx_msg void OnBnClickedButtonBrowseMessageFile();
	afx_msg void OnBnClickedButtonBrowseMessageFileExt();
	afx_msg void OnBnClickedButtonApply();
	afx_msg void OnBnClickedButtonDelete();
	afx_msg void OnDeltaposSpinRecord(NMHDR *pNMHDR, LRESULT *pResult);

// Dialog Data
	enum { IDD = IDD_DIALOG_EDIT_STATUS };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()

public:
	BOOL m_bAdd;
	LONG m_nID;

	CString m_szID;
	CString m_szCode;
	CString m_szDescription;
	CString m_szMessage;
	CString m_szIconFile;
	CString m_szExplanation;
	
	BOOL UpdateRecord();
	CArray<LONG> m_naID;
	INT m_nIndexID;
	CSpinButtonCtrl m_ctrlRecord;
	CString m_szNotify;
	BOOL m_bSendILL;
	BOOL m_bComplete;
	CString m_szInformation;
	CString m_szSubject;
	CString m_szMessageFile;
	CString m_szMessageFileExt;
};
